/*
 * name: mabel xu
 * date: october 15, 2007
 * filename: SuperTestFile.java
 * description: tests the SuperLinkedList class
 */

import java.util.*;		// allows working with LinkedLists, ListIterators, etc.

public class SuperTestFile
{
	public static void main(String[] args)
	{
		// create 3 lists
		SuperLinkedList list1 = new SuperLinkedList();
		SuperLinkedList list2 = new SuperLinkedList();
		SuperLinkedList list3 = new SuperLinkedList();

		// add 5 elements to each list
		list1.add("a");
		list1.add("b");
		list1.add("c");
		list1.add("d");
		list1.add("e");
		list2.add("e");
		list2.add("d");
		list2.add("c");
		list2.add("b");
		list2.add("a");
		list3.add("A");
		list3.add("D");
		list3.add("C");
		list3.add("E");
		list3.add("B");

		// display status of lists
		System.out.println("This is list1: ");
		System.out.println(list1.toString());
		System.out.println("This is list2: ");
		System.out.println(list2.toString());
		System.out.println("This is list3: ");
		System.out.println(list3.toString());
		System.out.println();

		// test mix method
		LinkedList resultMix = list1.mix(list2);
		System.out.println("This is list1 after calling mix: ");
		System.out.println(list1.toString());
		System.out.println("This is list2 after calling mix: ");
		System.out.println(list2.toString());
		System.out.println("This is result of mix: ");
		System.out.println(resultMix.toString());
		System.out.println();

		// test removeVowels method
		System.out.println("Removed Vowels: " + list3.removeVowels());
		System.out.println("This is list3 after removeVowels: ");
		System.out.println(list3.toString());
		System.out.println();

		// test removeConsonants method
		System.out.println("Removed Consonants: " + list2.removeConsonants());
		System.out.println("This is list2 after removeConsonants: ");
		System.out.println(list2.toString());
		System.out.println();

		// test concatenateStrings method
		LinkedList resultConcatenateStrings = list3.concatenateStrings();
		System.out.println("This is list3 after concatenateStrings: ");
		System.out.println(list3.toString());
		System.out.println("This is result of concatenateStrings: ");
		System.out.println(resultConcatenateStrings.toString());
		System.out.println();
	}		// end of main method (does all the testing of SuperLinkedList)
}		// end of SuperTestFile class